package com.adinnet.api.dict.service;

import com.adinnet.api.dict.model.form.DictForm;
import com.adinnet.api.dict.model.Dict;
import com.adinnet.core.JsonResult;
import com.adinnet.core.PageResp;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 字典 服务类
 * </p>
 *
 * @author sunjianbo
 * @since 2019-11-05
 */
public interface DictService extends IService<Dict> {
    PageResp<Dict> queryList(DictForm form);

    String getDictNamesByIds(String ids);

    Dict getDictByDictCode(String dictCode);

    Dict getDictByRemark(String remark);

    Integer updateDictNameById(String dictName,Integer id);

    Integer updateDictNameByDictCode(String dictName,String dictCode);

    JsonResult updateDict(Dict dict);
}
